//
//  HMSportPolyline.h
//  HMSport
//
//  Created by apple on 2017/4/21.
//  Copyright © 2017年 itheima. All rights reserved.
//

#import <MAMapKit/MAMapKit.h>

@interface HMSportPolyline : MAPolyline

//折线平均速度   km/hour
@property (nonatomic, assign, readonly) CGFloat speed;

//折线距离   km
@property (nonatomic, assign, readonly) CGFloat distance;

//折线时长   s
@property (nonatomic, assign, readonly) CGFloat time;

//描边颜色
@property (nonatomic, strong, readonly) UIColor *storkeColor;

/**
 折线初始化

 @param source 起点位置对象
 @param dest 终点位置对象
 @return 折线模型
 */
+ (instancetype)polylineWithSourceLocation:(CLLocation *)source andDestLocation:(CLLocation *)dest;

@end
